package com.itqf.mapper;

import com.itqf.entity.SysUsers;

import java.util.List;

public interface SysUsersMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SysUsers record);

    int insertSelective(SysUsers record);

    SysUsers selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SysUsers record);

    int updateByPrimaryKey(SysUsers record);

    SysUsers selectByUsername(String username);

    /**
     * 查询用户的角色列表
     */
    List<String> findRolesByUId(Integer id);

    /**
     * 查询用户的权限列表
     */
    List<String> findPermsByUId(Integer id);


}